import store from "../store/index";
//持久化登录
let user=localStorage.getItem('user')
if(user){
  user = JSON.parse(user);
  store.commit('loginModule/setUser',user)
}